/**
 * Created by Administrator on 2016/7/25.
 */
app.controller('LoginController', function ($scope, $http) {
    $scope.username = '';
    $scope.password = ''

    $scope.login = function(){
        $http({
            url: '/login',
            method: 'POST',
            data: {username: $scope.username, password: $scope.password}
        }).success(function(data){
            alert(data)
        }).error(function(msg){

        })
    }
});